package exercise3;
public class PlusOfFloat extends BaseExample {
//	表达式求和
	public void countForSum() {
		double sum = 0, a = 1, b;
		for (a = 1; a <= 97; a++) {
			b = a + 2;
			sum = sum + a / b;
			a++;
		}
		this.logger.debug("计算1/3 + 3/5 + 5/7 + 7/9 + … +97/99的结果为：" + sum);
	}

}
